home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
renameforsequence.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
639b
|
33 lines
/*
* RenameForSequence.ifx.pre
* Written by Thomas Krehbiel
*
* Rename frames into sequential numbers.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_RenameSeq_'
basedir = GETCLIP(base||'BaseDir')
basefile = GETCLIP(base||'BaseFile')
RequestFile '"Sequence Basename:"' '"'basedir'"' '"'basefile'"'
IF rc ~= 0 THEN EXIT rc
basename = result
CALL SETCLIP(base||'BaseDir', filereq.path)
CALL SETCLIP(base||'BaseFile', filereq.file)
CALL SETCLIP(base||'Base', basename)
EXIT